<%@ page language="java" import="java.util.*"contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="crm.util.ParamUtil" %>
<%@ page import="crm.model.Product_model"%>
<%@ page import="crm.model.Product_system"%>
<%@ page import="crm.model.Product_service"%>
<%@ page import="crm.util.Pagination"%>
<%@ page import="crm.control.ProductControl"%>
<%@ page import="crm.model.Product_system_stage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>product_system</title>
</head>
<body>
<form>
</form>
  <form>
  <table>
  <thead>
  <tr>
  <th>系统编号</th>
  <th>系统名称</th>
  <th>价格</th>
  <th>创建时间</th>
  <th>开发部门</th>
  <th>开发人</th>
  <th>描述</th>
  <th>操作</th>
  <th>操作</th>
  </tr>
  </thead>
  <tbody>
  <%
    request.setCharacterEncoding("UTF-8");
    int systemPages=ParamUtil.getInt(request,"pages",0);
    int systemRowsPerpage=ParamUtil.getInt(request,"pageSize",10);
    Product_system productSystem=new Product_system();
    ProductControl pcSystem=new ProductControl();
    List<Product_system> listSystem=new ArrayList<Product_system>();
    listSystem=(List)pcSystem.getSystem(systemPages,systemRowsPerpage,"create_time");
    for(int i=0;i<listSystem.size();i++){
         productSystem=(Product_system)listSystem.get(i);
   %>
  <tr>
  <td><%=productSystem.getSystem_number() %></td>
  <td><%=productSystem.getSystem_name() %></td>
  <td><%=productSystem.getPrice() %></td>
  <td><%=productSystem.getCreate_time() %></td>
  <td><%=productSystem.getDevelope_department() %></td>
  <td><%=productSystem.getDeveloper() %></td>
  <td><%=productSystem.getDescription() %></td>
  <td><a href="product_system_update.jsp?id=<%=productSystem.getId() %>">修改</a></td>
  <td><a href="product_system_delete.jsp?id=<%=productSystem.getId()%>" onclick='return confirm("若删除该系统，该系统下所有模块也会被删除，您确定吗？")'>删除</a></td>
  </tr>
  <%  } %>
  </tbody>
  </table>
    <%
				out.println(ProductControl.pageInstance1.getToolsMenu(systemPages));
			%>
  <input type = "button" value = "添加系统" onclick="window.location.href='product_system_add.jsp'" />
  </form>
</body>
</html>